<template>
  <el-row
    :gutter="0"
    style="margin-left: 0px; margin-right: 0px"
  >
    <el-col :span="8">
      <el-form-item label="营销模式：">
        <div>
          <span v-if="datas?.sellMode !== 'direct'">
            {{ datas?.agentAttribute === '1' ?'区域招商':'精细招商' }}
          </span>
          <span v-else> 终端直销</span>
        </div>
      </el-form-item>
    </el-col>
    <el-col :span="8">
      <el-form-item
        v-if="datas?.sellMode!=='agent_person'"
        label="代理商名称："
      >
        <span>{{ datas?.agentName||datas.agentDetail?.agentName }}</span>
      </el-form-item>
      <el-form-item
        v-else
        label="兼职名称："
      >
        <span>{{ datas?.agentName||datas.agentDetail?.agentName }}</span>
      </el-form-item>
    </el-col>
    <el-col :span="8">
      <el-form-item label="交易价：">
        <span>{{ datas.tradePrice }}元</span>
        <span v-if="datas?.productInfoDetail?.sellUnit"> / {{ getLabel('sell_unit',datas?.productInfoDetail?.sellUnit) }}</span>
      </el-form-item>
    </el-col>
    <el-col :span="8">
      <el-form-item label="负责营销职员：">
        <span>{{ datas?.headName||"无" }}</span>
      </el-form-item>
    </el-col>
    <el-col :span="8">
      <el-form-item label="最低销量：">
        <span v-if="datas?.minSale">{{ datas?.minSale }}{{ getLabel('sell_unit',datas?.productInfoDetail?.sellUnit) }} / {{ getLabel('sell_num_unit',datas?.agentProductDetail?.minSaleUnit) }}</span>
        <span v-else>无</span>
      </el-form-item>
    </el-col>
    <el-col :span="8">
      <el-form-item label="销量保证金：">
        <span v-if="datas?.sellEarnestMoney">{{ datas?.sellEarnestMoney }}元</span>
        <span v-else>无</span>
      </el-form-item>
    </el-col>
  </el-row>
</template>

<script>
import { toRefs } from 'vue'

export default {
  props: {
    datas: {
      type: Object,
      default: () => {},
    },
  },
  setup(props, context) {
    return {
      ...toRefs(props),
    }
  },
}
</script>

<style>
</style>
